package com.rocky.ssm.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AuditionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuditionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andAuditionIdIsNull() {
            addCriterion("audition_id is null");
            return (Criteria) this;
        }

        public Criteria andAuditionIdIsNotNull() {
            addCriterion("audition_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuditionIdEqualTo(Integer value) {
            addCriterion("audition_id =", value, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdNotEqualTo(Integer value) {
            addCriterion("audition_id <>", value, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdGreaterThan(Integer value) {
            addCriterion("audition_id >", value, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("audition_id >=", value, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdLessThan(Integer value) {
            addCriterion("audition_id <", value, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdLessThanOrEqualTo(Integer value) {
            addCriterion("audition_id <=", value, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdIn(List<Integer> values) {
            addCriterion("audition_id in", values, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdNotIn(List<Integer> values) {
            addCriterion("audition_id not in", values, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdBetween(Integer value1, Integer value2) {
            addCriterion("audition_id between", value1, value2, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("audition_id not between", value1, value2, "auditionId");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameIsNull() {
            addCriterion("audition_stu_name is null");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameIsNotNull() {
            addCriterion("audition_stu_name is not null");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameEqualTo(String value) {
            addCriterion("audition_stu_name =", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameNotEqualTo(String value) {
            addCriterion("audition_stu_name <>", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameGreaterThan(String value) {
            addCriterion("audition_stu_name >", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameGreaterThanOrEqualTo(String value) {
            addCriterion("audition_stu_name >=", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameLessThan(String value) {
            addCriterion("audition_stu_name <", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameLessThanOrEqualTo(String value) {
            addCriterion("audition_stu_name <=", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameLike(String value) {
            addCriterion("audition_stu_name like", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameNotLike(String value) {
            addCriterion("audition_stu_name not like", value, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameIn(List<String> values) {
            addCriterion("audition_stu_name in", values, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameNotIn(List<String> values) {
            addCriterion("audition_stu_name not in", values, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameBetween(String value1, String value2) {
            addCriterion("audition_stu_name between", value1, value2, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionStuNameNotBetween(String value1, String value2) {
            addCriterion("audition_stu_name not between", value1, value2, "auditionStuName");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceIsNull() {
            addCriterion("audition_cource is null");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceIsNotNull() {
            addCriterion("audition_cource is not null");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceEqualTo(String value) {
            addCriterion("audition_cource =", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceNotEqualTo(String value) {
            addCriterion("audition_cource <>", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceGreaterThan(String value) {
            addCriterion("audition_cource >", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceGreaterThanOrEqualTo(String value) {
            addCriterion("audition_cource >=", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceLessThan(String value) {
            addCriterion("audition_cource <", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceLessThanOrEqualTo(String value) {
            addCriterion("audition_cource <=", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceLike(String value) {
            addCriterion("audition_cource like", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceNotLike(String value) {
            addCriterion("audition_cource not like", value, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceIn(List<String> values) {
            addCriterion("audition_cource in", values, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceNotIn(List<String> values) {
            addCriterion("audition_cource not in", values, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceBetween(String value1, String value2) {
            addCriterion("audition_cource between", value1, value2, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionCourceNotBetween(String value1, String value2) {
            addCriterion("audition_cource not between", value1, value2, "auditionCource");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeIsNull() {
            addCriterion("audition_time is null");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeIsNotNull() {
            addCriterion("audition_time is not null");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeEqualTo(Date value) {
            addCriterionForJDBCDate("audition_time =", value, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("audition_time <>", value, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("audition_time >", value, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("audition_time >=", value, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeLessThan(Date value) {
            addCriterionForJDBCDate("audition_time <", value, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("audition_time <=", value, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeIn(List<Date> values) {
            addCriterionForJDBCDate("audition_time in", values, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("audition_time not in", values, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("audition_time between", value1, value2, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("audition_time not between", value1, value2, "auditionTime");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationIsNull() {
            addCriterion("audition_location is null");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationIsNotNull() {
            addCriterion("audition_location is not null");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationEqualTo(String value) {
            addCriterion("audition_location =", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationNotEqualTo(String value) {
            addCriterion("audition_location <>", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationGreaterThan(String value) {
            addCriterion("audition_location >", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationGreaterThanOrEqualTo(String value) {
            addCriterion("audition_location >=", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationLessThan(String value) {
            addCriterion("audition_location <", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationLessThanOrEqualTo(String value) {
            addCriterion("audition_location <=", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationLike(String value) {
            addCriterion("audition_location like", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationNotLike(String value) {
            addCriterion("audition_location not like", value, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationIn(List<String> values) {
            addCriterion("audition_location in", values, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationNotIn(List<String> values) {
            addCriterion("audition_location not in", values, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationBetween(String value1, String value2) {
            addCriterion("audition_location between", value1, value2, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionLocationNotBetween(String value1, String value2) {
            addCriterion("audition_location not between", value1, value2, "auditionLocation");
            return (Criteria) this;
        }

        public Criteria andAuditionContentIsNull() {
            addCriterion("audition_content is null");
            return (Criteria) this;
        }

        public Criteria andAuditionContentIsNotNull() {
            addCriterion("audition_content is not null");
            return (Criteria) this;
        }

        public Criteria andAuditionContentEqualTo(String value) {
            addCriterion("audition_content =", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentNotEqualTo(String value) {
            addCriterion("audition_content <>", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentGreaterThan(String value) {
            addCriterion("audition_content >", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentGreaterThanOrEqualTo(String value) {
            addCriterion("audition_content >=", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentLessThan(String value) {
            addCriterion("audition_content <", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentLessThanOrEqualTo(String value) {
            addCriterion("audition_content <=", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentLike(String value) {
            addCriterion("audition_content like", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentNotLike(String value) {
            addCriterion("audition_content not like", value, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentIn(List<String> values) {
            addCriterion("audition_content in", values, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentNotIn(List<String> values) {
            addCriterion("audition_content not in", values, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentBetween(String value1, String value2) {
            addCriterion("audition_content between", value1, value2, "auditionContent");
            return (Criteria) this;
        }

        public Criteria andAuditionContentNotBetween(String value1, String value2) {
            addCriterion("audition_content not between", value1, value2, "auditionContent");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}